<?php

namespace app\common\command;

use app\common\model\FamilyTree;
use think\console\Command;
use think\console\Input;
use think\console\Output;

/**
 * 流芳扣除时间 每日00:00执行
 * Class ClearTask
 * @package app\admin\command
 */
class ClearLf extends Command
{
    protected $model = null;

    protected function configure()
    {
        $this->setName('clearlf')->setDescription('流芳扣除时间');
    }
    protected function execute(Input $input, Output $output)
    {
        FamilyTree::where('shengyv','>','0')->setDec('shengyv',1);
        $output->info('完成');
    }
}